#pragma once 

#include<iostream>
#include<vector>
#include<string>

#include<unistd.h>
#include<sys/types.h>
#include<sys/wait.h>

//重定义函数指针
typedef void(* task)();

void task1()
{
    std::cout<<"刷新野区"<<std::endl;
}

void task2()
{
    std::cout<<"刷新技能"<<std::endl;
}

void task3()
{
    std::cout<<"泉水回血"<<std::endl;
}

void task4()
{
    std::cout<<"技能耗蓝"<<std::endl;
}

//保存所执行的任务
void Loadtask(std::vector<task>* tasks)
{
    tasks->push_back(task1);
    tasks->push_back(task2);
    tasks->push_back(task3);
    tasks->push_back(task4);
}